package com.aaie.gru.picture.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 图片
 * </p>
 *
 * @author lvxing
 * @since 2019-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GruSysPicture implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 图片主键id
     */
    @TableId(type = IdType.UUID)
    private String pictureId;

    /**
     * 存放前端传来的随机字符串，变相解决图片上传的跨域问题
     */
    private String randomKey;

    /**
     * 图片路径
     */
    private String picturePath;

    /**
     * 文件后缀
     */
    private String pictureSuffix;

    /**
     * 源图片名称
     */
    private String pictureName;

    /**
     * 图片file_id（删除和下载要使用到）
     */
    private String pictureFileId;

    /**
     * 图片大小
     */
    private String pictureSize;

    private String createName;

    private String createTime;

    private Long createTimeSort;

    private String updateName;

    private String updateTime;

    private Long updateTimeSort;

    /**
     * 图片类别 0：轮播
     */
    private String pictureType;

}
